package com.sky.mapper.user;

import com.sky.pojo.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    /**
     * 往订单详情页插入数据
     */
    void insertBatch(List<OrderDetail> orderDetailList);
    @Select("select * from order_detail where order_id = #{orderId}")
    List<OrderDetail> queryDishOrSetmealByOrderId(Long orderId);

    @Select("select * from order_detail")
    List<OrderDetail> queryAll();
}
